<template>
	<block>
		<!-- #ifdef MP-WEIXIN -->
		<block>
			<label for="submnit">
			<slot></slot>
			</label>
			<form @submit="onSubmitTap" report-submit="true"><button formType="submit" id="submnit" style="display:none" hover-class="none" /></form>
		</block>
		<!-- #endif -->
		<!-- #ifdef APP-PLUS -->
		<block>
			<slot></slot>
		</block>
		<!-- #endif -->
	</block>
</template>

<script>
	import userApi from "@/Api/User.js"
	
	export default {
		methods: {
			onSubmitTap({ detail: { formId } }) {
				userApi.postFormId(formId).then()
			}
		} 
	}
</script>

<style>
</style>
